From: Timo Tijhof Date: Fri, 1 Jul 2016 21:09:20 +0000 (+0100) Subject: mediawiki.action.edit.stash: Document ignored key codes X-Git-Tag: 1.31.0-rc.0~6466 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=dd5e19a37be6f0dab3fd629f3413a07903995ad7;p=lhc%2Fweb%2Fwiklou.git mediawiki.action.edit.stash: Document ignored key codes Follows-up eca800c7f02. Change-Id: Ic0d9620eb3a5e371cc9825248ebb40abb0dea965 --- diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.stash.js b/resources/src/mediawiki.action/mediawiki.action.edit.stash.js index da27d20cce..07c7d762bc 100644 --- a/resources/src/mediawiki.action/mediawiki.action.edit.stash.js +++ b/resources/src/mediawiki.action/mediawiki.action.edit.stash.js @@ -64,8 +64,10 @@ function onTextKeyUp( e ) { // Ignore keystrokes that don't modify text, like cursor movements. // See and - // . We don't have to be - // exhaustive, because the cost of misfiring is low. + // . We don't have to be exhaustive, + // because the cost of misfiring is low. + // * Key code 33-40: Page Up/Down, End, Home, arrow keys. + // * Key code 16-18: Shift, Ctrl, Alt. if ( ( e.which >= 33 && e.which <= 40 ) || ( e.which >= 16 && e.which <= 18 ) ) { return; }